package com.zjcloud.test;

import com.zjcloud.common.annotation.Anonymous;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/test")
public class TestAnonymousController {
    
    @Anonymous
    @GetMapping("/anonymous")
    public String testAnonymous() {
        return "This should be anonymously accessible";
    }
    
    @GetMapping("/normal")
    public String testNormal() {
        return "This requires authentication";
    }
}